package com.own.business.resource.controller.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * ResourceCoreApiDocConfiguration
 *
 * @author chenxueli
 * @date 2023-12-05 19:24:00
 */
@SpringBootConfiguration
public class ResourceCoreApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi resourceCoreApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "文件资源管理",
                this.getClass().getPackageName(),
                "com.own.business.resource.controller"
        );
    }

}
